﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace SystemDiagramNew.TypeDefinition
{
	public class PipeLineFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return !(typeof(DetailLine) != elem.GetType()) && ExtensibleStorageManager.IsPipeDetailCurve(elem as DetailLine);
		}

		public bool AllowReference(Reference reference, XYZ pos)
		{
			return false;
		}
	}
}
